package com.anuo.app.modules.study;

import com.anuo.app.common.globalhandle.BaseController;
import com.anuo.app.modules.coach.service.CoachService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.locks.Lock;


@RestController
public class StudyRestful extends BaseController {
    @Autowired
    CoachService coachService;

    @PostMapping(value = "v1/{module}/studyrestful", produces = {"application/json;charset=UTF-8"})
    public String studyrestful(
            @RequestBody String encryptedReq,
            @PathVariable("module") String module,//路径上的变量
            @RequestParam(value = "sex", required = false) String serviceName,//query string 就是 ?name=jk&sex=1这种
            @RequestHeader("Content-Type") String contentType
    ) {

        String result = module + ";" + serviceName + ";" + encryptedReq + ";" + contentType;

        return rspSuccess(result);

    }

}
